package com.example.goods.repository;

import com.example.goods.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;
/**
 * Created by IntelliJ IDEA.
 *
 * @author ouyangzhixiang
 * @date 2018/7/4
 */
public interface UserRepository extends JpaRepository<User,Integer> {
    /**
     * 查找用户名和密码是否一致
     * @param username
     * @param password
     * @return
     */
    User findByUsernameAndPassword(String username,String password);
}
